package models

var (
	SchoolStatus      map[int]string
	SchoolIsExcellent map[int]string
	SchoolIsAssist    map[int]string
)

// 学校
type School struct {
	Id              int64   `orm:"description(自增主键)"`
	Province        *Region `orm:"null;default(0);rel(fk);description(所属省)"`
	City            *Region `orm:"null;default(0);rel(fk);description(所属市)"`
	CityPinYin      string  `orm:"description(城市名称的拼音)"`
	Name            string  `orm:"description(名称)"`
	Introduce       string  `orm:"type(text);null;description(介绍)"`
	BaiKeUrl        string  `orm:"type(text);null;description(百科链接)"`
	PublicSpaceUrl  string  `orm:"type(text);null;description(公共空间链接)"`
	IsExcellent     int     `orm:"description(是否优选，0否 1是)"`
	IsExcellentShow string  `orm:"-"`
	IsAssist        int     `orm:"description(是否辅选，0否 1是)"`
	IsAssistShow    string  `orm:"-"`
	Status          int     `orm:"description(状态 0禁用 1正常)"`
	StatusShow      string  `orm:"-"`
	IsSelected      int     `orm:"-"`
}

func init() {
	SchoolStatus = map[int]string{
		0: "禁用",
		1: "正常",
	}

	SchoolIsExcellent = map[int]string{
		0: "否",
		1: "是",
	}

	SchoolIsAssist = map[int]string{
		0: "否",
		1: "是",
	}
}
